package com.fw.system.web.model.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 支出收益表
 * </p>
 *
 * @author  
 * @since 2021-11-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TbAmountLog extends Model<TbAmountLog> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    @TableField("user_id")
    private String userId;

    @TableField("log_name")
    private String logName;

    /**
     * 日志金额
     */
    @TableField("log_count")
    private BigDecimal logCount;

    /**
     * 1充值 2提现 3消费 4收入 ...
     */
    @TableField("log_type")
    private Integer logType;

    @TableField("create_time")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;

    /**
     * 如果是充值操作 1待审核 2失败 3成功
     */
    @TableField("is_status")
    private Integer isStatus;

    /**
     * 凭证地址
     */
    @TableField("img_url")
    private String imgUrl;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
